package store.wetravel.web.backend.category.service;

import store.wetravel.common.ServerResponse;
import store.wetravel.pojo.Category;

import java.util.List;

/**
 * Created by xinlong on 2017/10/25.
 */
public interface ICategoryService {

    ServerResponse addCategory(String categoryName, Integer parentId);

    ServerResponse updateCategoryName(Integer categoryId, String categoryName);

    ServerResponse deleteCategory(Integer categoryId);

    ServerResponse<Category> selectCategoryById(Integer categoryId);

    ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);

    ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);

    ServerResponse<List<Category>> selectCategoryAndParentById(Integer categoryId);
}
